Method for live streaming

ABSTRACT

A method for live streaming is provided. The method includes: displaying an online tutorial portal of a target service in a live-streaming room of an anchor account; in response to a trigger operation on the online tutorial portal, sending an online tutorial request to a server to request the anchor account to provide an online tutorial for the target service; in response to approval of the anchor account for the online tutorial request, acquiring video data by recording a current screen of a first terminal; displaying, in the live-streaming room of the anchor account, the current screen of the first terminal based on the video data; playing, in response to receiving audio data of the anchor account, the audio data of the anchor account; and acquiring audio data of a first account corresponding to the first terminal, and sending the audio data of the first account to the server.

CROSS-REFERENCE TO RELATED APPLICATION

The present disclosure is a continuation application of InternationalApplication No. PCT/CN2021/106715, filed on Jul. 16, 2021, which claimspriority to Chinese Patent Application No. 202011241042.6, filed on Nov.9, 2020, the contents of which are herein incorporated by reference intheir entireties.

TECHNICAL FIELD

The present disclosure relates to the field of live-streamingtechnologies, and in particular, relates to a method for live streaming.

BACKGROUND

In the field of game live streaming, users can learn game skills bywatching a game anchor playing games during live streaming, and thenpractice after the live streaming to improve their own game skills.

SUMMARY

Embodiments of the present disclosure provide a method for livestreaming.

According to one aspect of the embodiments of the present disclosure, amethod for live streaming is provided. The method is performed by afirst terminal and includes: displaying an online tutorial portal of atarget service in a live-streaming room of an anchor account; sending anonline tutorial request to a server in response to detecting a triggeroperation on the online tutorial portal, wherein the online tutorialrequest is configured to request the anchor account to provide an onlinetutorial for the target service; acquiring video data by recording acurrent screen of the first terminal in response to approval of theanchor account for the online tutorial request; displaying, in thelive-streaming room of the anchor account, the current screen of thefirst terminal based on the video data; playing, in response toreceiving audio data of the anchor account, the audio data of the anchoraccount in the live-streaming room of the anchor account; and acquiringaudio data of a first account corresponding to the first terminal, andsending the audio data of the first account to the server, to triggerthe server to send the audio data of the first account to secondterminals corresponding to a plurality of second accounts in thelive-streaming room.

According to another aspect of the embodiments of the presentdisclosure, a method for live streaming is provided. The method isperformed by a server and includes: receiving an online tutorial requestfrom a first account in a live-streaming room of an anchor account, andsending the online tutorial request to an anchor terminal correspondingto the anchor account, wherein the online tutorial request is configuredto request the anchor account to provide an online tutorial for a targetservice; acquiring video data of the first account in response toapproval of the anchor account for the online tutorial request, whereinthe video data is acquired by recording a screen of a first terminalcorresponding to the first account; sending the video data to secondterminals corresponding to a plurality of second accounts in thelive-streaming room; sending, in response to receiving audio data of theanchor account, the audio data of the anchor account to the secondterminals; and sending, in response to receiving audio data of the firstaccount, the audio data of the first account to the second terminals.

According to another aspect of the embodiments of the presentdisclosure, a method for live streaming is provided. The method isperformed by an anchor terminal and includes: displaying, in response toan online tutorial request of a first account in a live-streaming roomof an anchor account, a prompt message of the online tutorial request inthe live-streaming room, wherein the online tutorial request isconfigured to request the anchor account to provide an online tutorialfor a target service; sending an approval message to a server inresponse to detecting an approval operation on the prompt message,wherein the approval message is configured to indicate that the anchoraccount approves the online tutorial request; displaying, in response toreceiving video data of the first account, a current screen of a firstterminal corresponding to the first account based on the video data,wherein the video data is acquired by recording the screen of the firstterminal; acquiring audio data of the anchor account and sending theaudio data of the anchor account to the server, to trigger the server tosend the audio data of the anchor account to second terminalscorresponding to a plurality of second accounts in the live-streamingroom; and playing, in response to receiving audio data of the firstaccount, the audio data of the first account in the live-streaming roomof the anchor account.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a schematic diagram of an implementation environment of amethod for live streaming according to an exemplary embodiment of thepresent disclosure;

FIG. 2 is a flowchart of a method for live streaming according to anexemplary embodiment of the present disclosure;

FIG. 3 is a flowchart of a method for live streaming according to anexemplary embodiment of the present disclosure;

FIG. 4 is a flowchart of a method for live streaming according to anexemplary embodiment of the present disclosure;

FIG. 5 is a flowchart of a method for live streaming according to anexemplary embodiment of the present disclosure;

FIG. 6 is a flowchart of a method for live streaming according to anexemplary embodiment of the present disclosure;

FIG. 7 is a block diagram of an apparatus for live streaming accordingto an exemplary embodiment of the present disclosure;

FIG. 8 is a block diagram of an apparatus for live streaming accordingto an exemplary embodiment of the present disclosure;

FIG. 9 is a block diagram of an apparatus for live streaming accordingto an exemplary embodiment of the present disclosure;

FIG. 10 is a block diagram of a terminal according to an exemplaryembodiment of the present disclosure; and

FIG. 11 is a block diagram of a server according to an exemplaryembodiment of the present disclosure.

DETAILED DESCRIPTION

Data involved in the present disclosure is data authorized by a user orfully authorized by various parties.

FIG. 1 shows a schematic diagram of an implementation environment of amethod for live streaming according to an exemplary embodiment of thepresent disclosure. Referring to FIG. 1 , the implementation environmentincludes: a terminal 101 and a server 102.

In some embodiments, the terminal 101 is at least one of a smart mobilephone, a smart watch, a desktop computer, a portable computer, a virtualreality terminal, an augmented reality terminal, a wireless terminal,and a laptop portable computer. The terminal 101 has a communicationfunction, and the terminal 101 generally refers to one of a plurality ofterminals. The embodiments of the present disclosure only take theterminal 101 as an example for description. A person skilled in the artcan understand that there may be more or less terminals. In someembodiments, the terminal 101 runs an application with a live-streamingfunction, and a user can perform video interaction or audio interactionwith other users through the application with the live-streamingfunction.

In the embodiments of the present disclosure, the terminal 101 includesa first terminal 1011 and a second terminal 1012. The first terminal1011 is a terminal corresponding to an anchor account, and the secondterminal 1012 is a terminal corresponding to a viewer account, that is,a terminal corresponding to a user account that requests an onlinetutorial. A terminal corresponding to an account refers to a terminal towhich the account is logged in. For example, the first terminal 1011 isa terminal to which the anchor account is logged in, and the secondterminal 1012 is a terminal to which the viewer account is logged in. Itshould be noted that a first account is any viewer account in thelive-streaming room of the anchor account. The online tutorial is anonline tutorial provided by the anchor account to the first account fora specific service. For example, an online tutorial for a game providedby the anchor account to the first account, an online tutorial forlearning provided by the anchor account to the first account, and thelike. In the embodiments of the present disclosure, a target service isconfigured to represent a service for which the anchor account providesthe online tutorial. In some embodiments, a second account is a vieweraccount other than the first account in the live-streaming room of theanchor account.

In some embodiments, the server 102 is an independent physical server, aserver cluster consisting of a plurality of physical servers, adistributed file system, or a cloud server providing a cloud service, acloud database, cloud computing, a cloud function, cloud storage, anetwork service, cloud communication, a middleware service, a domainname service, a security service, a content delivery network (CDN), orother basic cloud computing services such as big data and an artificialintelligence platform. The server 102 and the terminal 101 are connecteddirectly or indirectly through wired or wireless communication, which isnot limited in the embodiments of the present disclosure. In someembodiments, there may be more or less servers 102, which is not limitedin the embodiments of the present disclosure. In some embodiments, theserver 102 further includes other functional servers to provide morecomprehensive and diversified services.

In the embodiments of the present disclosure, the server 102 is abackend server of the live-streaming application. After live-streamingdata flows of the first terminal 1011 and the second terminal 1012 arereceived, the server 102 sends the live-streaming data flows toterminals corresponding to a plurality of accounts in the live-streamingroom.

The method for live streaming provided in the embodiments of the presentdisclosure is jointly performed by the first terminal 1011, the secondterminal 1012, and the server 102. The corresponding processes are asfollows. An anchor operates on the first terminal 1011. The anchor logson the anchor account in the live-streaming application, clicks alive-streaming startup button in a live-streaming application interface,and creates a live-streaming room of the anchor account. A user operateson the second terminal 1012. The user logs on the first account in thelive-streaming application, and enters the live-streaming room of theanchor account by live-streaming room searching or live-streaming roomrecommendation. An online tutorial portal of the target service isdisplayed on an interface of the live-streaming room. In the case thatthe user wants to apply for an online tutorial from the anchor, the useroperates on the second terminal 1012. The user clicks the onlinetutorial portal to trigger the second terminal 1012 to send an onlinetutorial request to the server 102. In response to receiving the onlinetutorial request, the server 102 sends the online tutorial request tothe first terminal 1011. In the case that the anchor account approvesthe online tutorial request, the anchor can provide an online tutorialfor the target service to the user by performing the methods for livestreaming according to the embodiments of the present disclosure.

FIG. 2 is a flowchart of a method for live streaming according to anexemplary embodiment of the present disclosure. As shown in FIG. 2 , themethod is performed by a first terminal, and the terminal is a terminalcorresponding to a user account (first account) requesting an onlinetutorial, that is, the first terminal is the second terminal 1012 shownin FIG. 1 . Exemplarily, the method includes the following processes.

In 201, the first terminal displays an online tutorial portal of atarget service in a live-streaming room of an anchor account.

In 202, in response to detecting a trigger operation on the onlinetutorial portal, the first terminal sends an online tutorial request toa server, wherein the online tutorial request is configured to requestthe anchor account to provide an online tutorial for the target service.

In 203, in response to approval of the anchor account for the onlinetutorial request, the first terminal acquires video data by recording acurrent screen of the first terminal.

In 204, the first terminal displays, in the live-streaming room of theanchor account, the current screen of the first terminal based on thevideo data.

In 205, in response to receiving audio data of the anchor account, thefirst terminal plays the audio data of the anchor account in thelive-streaming room of the anchor account.

In 206, the first terminal acquires audio data of a first accountcorresponding to the first terminal and sends the audio data of thefirst account to the server, to trigger the server to send the audiodata of the first account to second terminals corresponding to aplurality of second accounts in the live-streaming room.

In the technical solutions provided in the embodiments of the presentdisclosure, by seeing the screen of the first terminal in thelive-streaming room, the anchor can provide a targeted tutorial based onactual operations of the user, thereby helping the user learn better andimproving the interaction between the anchor and the viewer.

In some embodiments, the method further includes: displaying a resourcepayment prompt message in the live-streaming room in response to theapproval of the anchor account for the online tutorial request, whereinthe resource payment prompt message is configured to indicate an amountof resources to be paid for initiating the online tutorial request; andacquiring the video data in response to detecting a payment successmessage based on the resource payment prompt message.

In some embodiments, the method further includes: displaying alive-streaming screen of the anchor account in the live-streaming roomof the anchor account; switching a screen displayed in thelive-streaming room to the live-streaming screen of the anchor accountin response to an online tutorial end message, wherein the onlinetutorial end message is configured to indicate that the online tutorialfor the target service is ended.

In some embodiments, the method further includes: displaying an onlinetutorial scoring panel in the live-streaming room in response to anonline tutorial end message, wherein the online tutorial end message isconfigured to indicate that the online tutorial for the target serviceis ended, the online tutorial scoring panel is configured to acquire ascore of a current online tutorial, and the online tutorial scoringpanel includes a plurality of scoring options; and sending, in responseto detecting a select operation on any of the plurality of scoringoptions, a score corresponding to the scoring option to the server.

In some embodiments, the method further includes: displaying a rankingof scores of the target service, wherein the ranking of scores includesscores of a plurality of anchor accounts corresponding to the targetservice.

FIG. 3 is a flowchart of a method for live streaming according to anexemplary embodiment of the present disclosure. As shown in FIG. 3 , themethod is performed by a server and includes the following processes.

In 301, the server receives an online tutorial request from a firstaccount in a live-streaming room of an anchor account, and sends theonline tutorial request to an anchor terminal corresponding to theanchor account, wherein the online tutorial request is configured torequest the anchor account to provide an online tutorial for a targetservice. In the embodiment illustrated in FIG. 3 , the first account isa viewer account in the live streaming room.

In 302, in response to approval of the anchor account for the onlinetutorial request, the server acquires video data of the first account,wherein the video data is acquired by recording a screen of a firstterminal corresponding to the first account.

In 303, the server sends the video data to second terminalscorresponding to a plurality of second accounts in the live-streamingroom. The second terminals are the terminals corresponding to aplurality of viewer accounts in the live-streaming room, and the firstterminal corresponding to the first account is not included in thesecond terminals.

In 304, in response to receiving audio data of the anchor account, theserver sends the audio data of the anchor account to the secondterminals.

In 305, in response to receiving audio data of the first account, theserver sends the audio data of the first account to the secondterminals.

In the technical solutions provided in the embodiments of the presentdisclosure, by seeing the screen of a user in the live-streaming room,the anchor can provide the targeted tutorial based on actual operationsof the user, thereby helping the user and other users in thelive-streaming room to learn better and improving the interactionbetween the anchor and the viewer.

In some embodiments, the method further includes: sending a resourcepayment prompt message to the first terminal in response to the approvalof the anchor account for the online tutorial request, wherein theresource payment prompt message is configured to indicate an amount ofresources to be paid for initiating the game online tutorial request.

In some embodiments, the method further includes: receiving a score of acurrent online tutorial from the first terminal or the terminalscorresponding to the viewer accounts; and updating, based on the score,a ranking of scores to acquire an updated ranking of scores, wherein theranking of scores includes scores of a plurality of anchor accountscorresponding to the target service.

FIG. 4 is a flowchart of a method for live streaming according to anexemplary embodiment of the present disclosure. As shown in FIG. 4 , themethod is performed by an anchor terminal, and the anchor terminal is aterminal corresponding to an anchor account, that is, the anchorterminal is the first terminal 1011 shown in FIG. 1 . Exemplarily, themethod includes the following processes.

In 401, in response to an online tutorial request of a first account ina live-streaming room of an anchor account, the anchor terminal displaysa prompt message of the online tutorial request in the live-streamingroom, wherein the online tutorial request is configured to request theanchor account to provide an online tutorial for a target service. Thefirst account is a viewer account in the live-streaming room.

In 402, in response to detecting an approval operation on the promptmessage, the anchor terminal sends an approval message to a server,wherein the approval message is configured to indicate that the anchoraccount approves the online tutorial request.

In 403, in response to receiving video data of the first account, theanchor terminal displays a current screen of a first terminalcorresponding to the first account based on the video data, wherein thevideo data is acquired by recording the screen of the first terminal.

In 404, the anchor terminal acquires audio data of the anchor accountand sends the audio data of the anchor account to the server, to triggerthe server to send the audio data of the anchor account to secondterminals corresponding to a plurality of second accounts in thelive-streaming room. The second terminals are the terminalscorresponding to a plurality of viewer accounts in the live-streamingroom, and the first terminal corresponding to the first account is notincluded in the second terminals.

In 405, in response to receiving audio data of the first account, theanchor terminal plays the audio data of the first account in thelive-streaming room of the anchor account.

In the technical solutions provided in the embodiments of the presentdisclosure, by seeing the screen of the first terminal of the useraccount, the anchor can provide the targeted tutorial based on actualoperations of the user, thereby helping the user learn better andimproving the interaction between the anchor and the viewer.

In some embodiments, the method further includes: displaying an onlinetutorial button in the live-streaming room of the anchor account,wherein the online tutorial button is configured to activate an onlinetutorial function; and sending an online tutorial function activationmessage to the server in response to detecting a trigger operation onthe online tutorial button, wherein the online tutorial functionactivation message is configured to indicate that the online tutorialfunction has been activated.

In some embodiments, the method further includes: displaying a resourceamount input box in the live-streaming room in response to detecting thetrigger operation on the online tutorial button, wherein the resourceamount input box is configured to input a resource amount required forthe online tutorial; acquiring a resource amount in the resource amountinput box in response to detecting an input complete operation on theresource amount input box; and sending an online tutorial functionactivation message carrying the resource amount to the server.

FIG. 5 is a flowchart of a method for live streaming according to anexemplary embodiment of the present disclosure. In the embodiments,interaction processes of a first terminal, a second terminal, and aserver is taken as an example to describe the technical solutions.Referring to FIG. 5 , the method includes the following processes.

In 501, in response to an operation for opening a live-streaming room ofan anchor account, the first terminal generates a live-streaming dataflow of the anchor account.

The first terminal is configured to represent a terminal correspondingto the anchor account. That is, the first terminal is an anchorterminal. The live-streaming data flow includes a video data flow and anaudio data flow.

In some embodiments, the anchor operates on the first terminal. Theanchor activates the live-streaming application, and logs on the anchoraccount in the live-streaming application, wherein a live-streamingstartup button is displayed in an interface of the live-streamingapplication. The anchor clicks the live-streaming startup button in theinterface of the live-streaming application. Then, in response to theoperation for opening a live-streaming room of the anchor account, thefirst terminal creates the live-streaming room of the anchor account,acquires video data and audio data of the anchor account, generates alive-streaming data flow of the anchor account by performing streamingmedia encoding on the video data and the audio data, and sends thelive-streaming data flow to the server.

Based on different live-streaming content, live-streaming data flowsgenerated by the first terminal are different. The process of generatingthe live-streaming data flow by the first terminal is describedhereinafter.

In some embodiments, first video data of the anchor account is acquiredthrough a camera of the first terminal, first audio data of the anchoraccount is acquired through a microphone of the first terminal, and afirst live-streaming data flow of the anchor account is generated byperforming streaming media encoding on the first video data and thefirst audio data. The first video data is image data acquired by thecamera of the first terminal, such as a portrait image. The first audiodata is audio data acquired by the microphone of the first terminal,such as a human voice. The camera of the first terminal is a built-incamera or an externally connected camera, and the microphone associatedwith the first terminal is a built-in microphone or an externallyconnected microphone. In these processes, the live-streaming data of theanchor account can be quickly acquired through the camera and microphoneassociated with the first terminal, such that fast flow pushing in thelive-streaming room can be realized, thereby ensuring normal operationof the live-streaming room.

In other embodiments, the first terminal acquires second video data ofthe anchor account by recording a current screen of the first terminal,acquires second audio data generated by the first terminal based on thecurrent screen, and generates a second live-streaming data flow of theanchor account by performing streaming media encoding on the secondvideo data and the second audio data. The second video data is screendata of the first terminal, such as a game video screen. The secondaudio data is audio data generated by the first terminal, such as a gamesound. In these processes, the live-streaming data of the anchor accountis acquired by recording the screen, which can also acquire thelive-streaming data of the anchor account quickly, such that fast flowpushing of the screen can be realized.

The two processes above are the process of generating the firstlive-streaming data flow based on the first video data and the firstaudio data, and the process of generating the second live-streaming dataflow based on the second video data and the second audio data. It shouldbe noted that, the first terminal can further generate a thirdlive-streaming data flow based on the first video data, the first audiodata, the second video data, and the second audio data. That is, thefirst terminal acquires the portrait image, the human voice, the screen,and the terminal sound, and generates the third live-streaming data flowby performing streaming media encoding on the portrait image, the humanvoice, the screen, and the terminal sound. For example, during game livestreaming, the game anchor can do live streaming of game video screenand the portrait image of himself/herself at the same time. The processof generating the live-streaming data flow is not limited in theembodiments of the present disclosure.

In 502, the first terminal sends the live-streaming data flow of theanchor account to a server.

In 503, the server receives the live-streaming data flow of the anchoraccount and sends the live-streaming data flow to a second terminal.

In the embodiments of the present disclosure, the second terminal is aterminal corresponding to the first account. That is, the secondterminal is a terminal corresponding to the user account requesting anonline tutorial. It should be noted that, the second terminal is aterminal corresponding to any viewer account in the live-streaming roomof the anchor account.

It should be understood that, the second terminal being an executionentity is merely taken as an example for illustrating the embodiments ofthe present disclosure. In practice, in response to receiving thelive-streaming data flow of the anchor account, the server sends thelive-streaming data flow to terminals corresponding to a plurality ofviewer accounts in the live-streaming room. In response to receiving thelive-streaming data flow, the terminals corresponding to the pluralityof accounts display a live-streaming screen based on the live-streamingdata flow. The second account is taken as an example, and the secondaccount is any viewer account other than the first account in thelive-streaming room of the anchor account. In response to receiving thelive-streaming data flow of the anchor account, the server sends thelive-streaming data flow to the terminal corresponding to the secondaccount, to trigger the terminal corresponding to the second account todisplay the live-streaming screen of the live-streaming room.

In 504, in response to receiving the live-streaming data flow, thesecond terminal displays a live-streaming screen of the anchor accountin a live-streaming room of the anchor account.

In some embodiments, in response to receiving the live-streaming dataflow of the anchor account, the second terminal displays thelive-streaming screen based on the live-streaming data flow of theanchor account.

Based on different live-streaming data flows generated in 501,live-streaming screens displayed on the second terminal are different.The processes of displaying the live-streaming screens based on thefirst live-streaming data flow, the second live-streaming data flow, andthe third live-streaming data flow are described hereinafter.

In some embodiments, in a case that the second terminal receives thefirst live-streaming data flow of the anchor account, in thelive-streaming room of the anchor account, displaying of a first videoscreen of the anchor account and playing of a first audio of the anchoraccount are performed at the same time. For example, displaying of theportrait image of the anchor account in the live-streaming room andplaying of the human voice of the anchor account in the live-streamingroom are performed at the same time.

In other embodiments, in a case that the second terminal receives thesecond live-streaming data flow of the anchor account, in thelive-streaming room of the anchor account, displaying of a second videoscreen of the anchor account and playing of a second audio of the anchoraccount are performed at the same time. For example, displaying of agame video screen of the terminal corresponding to the anchor account inthe live-streaming room and playing of a game audio of the anchoraccount in the live-streaming room are performed at the same time.

In other embodiments, in a case that the second terminal receives thethird live-streaming data flow of the anchor account, in thelive-streaming room of the anchor account, displaying of the first videoscreen and the second video screen of the anchor account and playing ofthe first audio and the second audio of the anchor account are performedat the same time. In some embodiments, the second terminal displays thesecond video screen of the anchor account in the form of a full screen,and displays the first video screen of the anchor account in the form ofa window; or the second terminal displays the first video screen of theanchor account in the form of a full screen, and displays the secondvideo screen of the anchor account in the form of a window. For example,in the live-streaming room, the game video screen of the anchor accountis displayed in the form of a full screen and the portrait image of theanchor account is displayed in the form of a window; meanwhile, the gameaudio and the human voice of the anchor account are played.

In the foregoing embodiments, based on different live-streaming contentof the anchor account, different live-streaming data flows aregenerated, and thus different live-streaming screens are displayed inthe live-streaming room. The live-streaming screen displayed in thelive-streaming room is not limited in the embodiments of the presentdisclosure.

In 505, in response to detecting a trigger operation on an onlinetutorial button in the live-streaming room, the first terminal sends anonline tutorial function activation message to the server, wherein theonline tutorial button is configured to activate an online tutorialfunction, and the online tutorial function activation message isconfigured to indicate that the online tutorial function has beenactivated.

In the embodiments of the present disclosure, the online tutorial is anonline tutorial provided by the anchor account to the first account fora target service. The target service is configured to represent aservice for which the anchor account provides the online tutorial. Insome embodiments, the target service is a service of any type, such as agame service, a teaching service, or the like.

In some embodiments, the first terminal displays an online tutorialbutton in the live-streaming room of the anchor account, wherein theonline tutorial button is configured to activate an online tutorialfunction. In a case that the anchor wants to activate the onlinetutorial function for the target service, the anchor clicks the onlinetutorial button in the interface of the live-streaming room. Then, inresponse to the activate operation of the anchor account on the onlinetutorial function, the first terminal sends an activation message to theserver. In these processes, by configuring the online tutorial button,the anchor can activate the online tutorial function by clicking theonline tutorial button, thereby improving the human-computer interactionefficiency.

In other embodiments, in the case that the anchor wants to activate theonline tutorial function for the target service, the anchor clicks theonline tutorial button in the interface of the live-streaming room.Then, in response to detecting the trigger operation on the onlinetutorial button, the first terminal displays a resource amount input boxin the live-streaming room, wherein the resource amount input box isconfigured to input a resource amount required for the online tutorial.The anchor operates on the first terminal. The anchor inputs a resourceamount in the resource amount input box. Then, in response to detectingan input complete operation on the resource amount input box, the firstterminal acquires the resource amount in the resource amount input box,generates an activation message carrying the resource amount, and sendsthe activation message to the server. The resource amount is an amountof money or virtual gold coins. For example, the target service is agame service, and the resource amount is 10 yuan, indicating that 10yuan is required for each round of game. In these processes, bytriggering the online tutorial button, the resource amount input box isdisplayed, such that the anchor can operate in the resource amount inputbox to determine the resource amount required for the online tutorial,thereby improving the human-computer interaction efficiency and theflexibility of interaction.

The foregoing processes are processes in which the anchor inputs theresource amount manually. In other embodiments, the resource amount canbe predetermined by a technician, such that the anchor can acquire theresource amount corresponding to the online tutorial function inresponse to activating the online tutorial function.

In 506, the server receives the online tutorial function activationmessage and sends the online tutorial function activation message to thesecond terminal.

In some embodiments, in response to receiving the online tutorialfunction activation message, the server sends the online tutorialfunction activation message to the terminals corresponding to theplurality of accounts in the live-streaming room. Then, in response toreceiving the online tutorial function activation message, the terminalscorresponding to the plurality of accounts can display an onlinetutorial portal.

In 507, the second terminal receives the online tutorial functionactivation message and displays an online tutorial portal of the targetservice in the live-streaming room of the anchor account.

In some embodiments, in response to receiving the online tutorialfunction activation message, the second terminal acquires the resourceamount carried in the online tutorial function activation message, anddisplays the online tutorial portal of the target service and thecorresponding resource amount in the live-streaming room of the anchoraccount. For example, the online tutorial portal of the target serviceincludes a prompt message, a name of the target service, and theresource amount. For example, the prompt message is “The anchor hasactivated the online tutorial”, the name of the target service is “**game,” and the resource amount is “RMB 10 yuan.”

It should be noted that, processes 505 to 507 are optional. In otherembodiments, the online tutorial portal of the target service isdisplayed in the live streaming room interface of the terminalscorresponding to the plurality of viewer accounts in the live streamingroom. The online tutorial portal can be displayed without triggering bythe anchor.

In 508, in response to detecting a trigger operation on the onlinetutorial portal, the second terminal sends an online tutorial request tothe server, wherein the online tutorial request is configured to requestthe anchor account to provide an online tutorial for the target service.

In some embodiments, in a case that the user wants to apply for theonline tutorial provided by the anchor, the user clicks the onlinetutorial portal in the live-streaming room. Then, in response todetecting the click operation on the online tutorial portal, the secondterminal sends the online tutorial request to the server, wherein theonline tutorial request carries information of the first account. Forexample, the information of the first account is an account avatar, anaccount identification (ID), and the like.

In 509, the server receives the online tutorial request from the secondterminal, and sends the online tutorial request to the first terminal.

In 510, the first terminal receives the online tutorial request, anddisplays, in the live-streaming room of the anchor account, a promptmessage of the online tutorial request.

In some embodiments, in response to receiving the online tutorialrequest from the server, the first terminal acquires the information ofthe first account carried in the online tutorial request, and displays,in the live-streaming room of the anchor account, the prompt message ofthe online tutorial request. For example, the prompt message isdisplayed in the form of a prompt box for the online tutorial request,wherein the prompt box for the online tutorial request is configured toindicate the online tutorial request for the target service. Forexample, the prompt box for the online tutorial request includes theinformation of the first account, an approve button, and a rejectbutton.

It should be understood that, in response to an online tutorial requestfrom any account in the live-streaming room of the anchor account, thefirst terminal displays, in the live-streaming room, the prompt messageof the online tutorial request.

In 511, in response to detecting an approval operation on the promptmessage, the first terminal sends an approval message to the server,wherein the approval message is configured to indicate that the anchoraccount approves the online tutorial request.

In some embodiments, in a case that the anchor agrees to provide theonline tutorial to the user, the anchor clicks the approve button in theprompt box for the online tutorial request. Then, in response to theapproval of the anchor account for the online tutorial request, thefirst terminal sends the approval message to the server, to indicatethat the anchor account approves the online tutorial request.

The 511 described above is a process in which the anchor accountapproves the online tutorial request. In other embodiments, in a casethat the anchor refuses to provide the online tutorial to the user, theanchor clicks the reject button in the prompt box for the onlinetutorial request. Then, in response to the rejection of the anchoraccount for the online tutorial request, the first terminal sends arejection message to the server, to indicate that the anchor accountrejects the online tutorial request.

In 512, in response to approval of the anchor account for the onlinetutorial request, the server sends a resource payment prompt message tothe second terminal, wherein the resource payment prompt message isconfigured to indicate an amount of resources to be paid for initiatingthe online tutorial request.

In some embodiments, the server receives the approval message sent bythe first terminal, acquires the information of the first accountcarried in the approval message, and sends, based on the information ofthe first account, the resource payment prompt message to the terminalcorresponding to the first account, that is, the second terminal,wherein the resource payment prompt message carries a resource amount.

In some embodiments, the approval message carries the resource amount.Then, in response to receiving the approval message, the server canacquire the resource amount carried in the approval message, andgenerate the resource payment prompt message based on the resourceamount. Alternatively, in the case that the server receives the resourceamount for the first time, that is, the server receives the onlinetutorial function activation message sent by the first terminal, theserver acquires and records the resource amount carried in the onlinetutorial function activation message. Then, the server can acquire theresource amount corresponding to the anchor account by querying therecorded resource amount, and generate the resource payment promptmessage based on the resource amount acquired by querying. The processof acquiring the resource amount by the server in 512 is not limited inembodiments of the present disclosure.

In 513, the second terminal receives the resource payment promptmessage, and displays the resource payment prompt message in thelive-streaming room.

In some embodiments, in response to receiving the resource paymentprompt message sent by the server, the second terminal acquires theresource amount carried in the resource payment prompt message, anddisplays the resource payment prompt message in the live-streaming roomof the anchor account, wherein the resource payment prompt messageincludes a pay button and a cancel button.

It should be understood that the resource payment prompt message inprocesses 512 to 513 is sent by the server to the second terminal only,and is not sent to other viewer accounts in the live-streaming room.That is, only the second terminal displays the resource payment promptmessage, and the terminals corresponding to other viewer accounts in thelive-streaming room do not display the resource payment prompt message.

In 514, in response to detecting a payment success message based on theresource payment prompt message, the second terminal records a currentscreen of the second terminal to acquire video data.

In some embodiments, the user clicks the pay button in the resourcepayment prompt message. In this case, in response to the pay operationof the user, the second terminal pulls up a third-party payment platformto run a payment process. After the user completes the payment, thesecond terminal acquires, in response to detecting the payment successmessage based on the resource payment prompt message, the video data byrecording the current screen of the second terminal, such that the flowpushing to the server can be performed.

In the foregoing processes, by displaying the resource payment promptmessage, the amount of information displayed in the live-streaming roomis increased, such that the user can conveniently trigger, based on theresource payment prompt message, the terminal to acquire the video data.

The target service being a game service is taken as an example. Thescreen recorded by the second terminal includes a game video screen. Insome embodiments, in the case that the anchor approves the onlinetutorial request, the user operates on the second terminal to activate agame application. Then, in response to the activate operation for thegame application, the second terminal displays an interface of the gameapplication. Correspondingly, the screen recorded by the second terminalincludes the interface of the game application. In other embodiments, inresponse to the approval of the anchor for the online tutorial request,the second terminal automatically activates the game application anddisplays the interface of the game application. Correspondingly, thescreen recorded by the second terminal includes the interface of thegame application. In this way, the game application can be manuallyactivated by the user or automatically activated by the second terminal,and fast activation of the game application can be realized. Then, thesecond terminal can record the game video screen of the user and displaythe game video screen in the live-streaming room, and an online tutorialfor the game can be performed subsequently.

In 515, the second terminal displays, in the live-streaming room of theanchor account, the current screen of the second terminal based on thevideo data.

In some embodiments, in response to acquiring the video data, the secondterminal can display, in the live-streaming room of the anchor account,the current screen of the second terminal based on the video data,without waiting for the flow pushed by the server.

In 516, the second terminal sends the video data to the server.

In some embodiments, the second terminal sends the video data to theserver in the form of a data flow.

It should be noted that, there is no strict sequence between processes515 and 516. That is, after the video data is acquired, the secondterminal can send the video data to the server and display the screen inthe live-streaming room at the same time.

In 517, the server receives the video data and sends the video data tothe first terminal.

The 517 is a process of sending the video data to the terminalcorresponding to the anchor account (that is, the first terminal), suchthat the anchor account can see the screen of the second terminal inreal time, that is, the anchor account can see operations of the firstaccount on the screen in real time, thereby facilitating the subsequentonline tutorial. In some embodiments, in response to receiving the videodata, the server sends the video data to the terminals corresponding tothe plurality of accounts in the live-streaming room. Then, in responseto receiving the video data, the terminals corresponding to theplurality of accounts in the live-streaming room display the screen ofthe second terminal. The second account is taken as an example. Inresponse to receiving the video data, the server sends the video data tothe terminal corresponding to the second account, to trigger theterminal corresponding to the second account to display the screen ofthe second terminal. As described in association with 503, the secondaccount is any viewer account other than the first account in thelive-streaming room of the anchor account. In this way, other vieweraccounts in the live-streaming room can also see the screen of thesecond terminal corresponding to the first account of a user.

In 518, the first terminal receives the video data, and displays, in thelive-streaming room, the current screen of the second terminal based onthe video data.

In some embodiments, after the server sends the video data to theterminals corresponding to the plurality of accounts in thelive-streaming room, the first terminal can receive the video data, anddisplay, in the live-streaming room, the current screen of the secondterminal based on the video data.

In 519, the first terminal acquires audio data of the anchor account andsends the audio data to the server.

In some embodiments, after the current screen of the second terminal isdisplayed in the live-streaming room of the first terminal, the anchorcan see the screen of the second terminal in real time. In this case,the user operates on the second terminal to display a screencorresponding to the target service. Through a voice communication, theanchor can provide a tutorial for the target service to the user. Thatis, the anchor clicks a voice call button in the live-streaming room.Then, in response to the voice call operation of the anchor account, thefirst terminal sends a voice call request to the server. In response toapproval of the first account for the voice call request, the anchor andthe user start a voice communication. The first terminal acquires theaudio data of the anchor account through the microphone, and sends theaudio data of the anchor account to the server, to push the flow of theaudio data of the anchor account.

In 520, the server receives the audio data of the anchor account andsends the audio data to the second terminal.

The 520 is a process of sending the audio data of the anchor account tothe second terminal. In some embodiments, in response to receiving theaudio data of the anchor account, the server sends the audio data of theanchor account to the terminals corresponding to the plurality ofaccounts in the live-streaming room. Then, in response to receiving theaudio data of the anchor account, the terminals corresponding to theplurality of accounts in the live-streaming room play the audio data.The second account is taken as an example. In response to receiving theaudio data of the anchor account, the server sends the audio data of theanchor account to the terminal corresponding to the second account, totrigger the terminal corresponding to the second account to play theaudio data of the anchor account. In this way, other viewer accounts inthe live-streaming room can also acquire content of the online tutorialprovided by the anchor account.

For example, the target service is a game service. The screen of thesecond terminal is a game video screen of the game application;meanwhile, the game video screen is also displayed in the live-streamingroom. When the user plays the game, all of the anchor account and otherviewer accounts in the live-streaming room can watch the game process ofthe user. The anchor provides an online tutorial for the game process ofthe user through a voice communication. In this case, the audio of thelive-streaming room includes a microphone sound of the first terminal(i.e., audio of the anchor), a microphone sound of the second terminal(i.e., audio of the user), and a device sound of the second terminal(i.e., game sound).

In 521, the second terminal receives the audio data of the anchoraccount and plays the audio data in the live-streaming room of theanchor account.

Processes 519 to 521 is a process of pushing the flow of the audio dataof the anchor account. In other embodiments, when the user operating thesecond terminal speaks, the second terminal acquires audio data of theuser through the microphone, and sends the audio data of the user to theserver. Then, in response to receiving the audio data of the user, theserver sends the audio data of the user to the terminals correspondingto the plurality of terminals in the live-streaming room, to push theflow of the audio data of the user.

In other embodiments, in response to an online tutorial end message, thesecond terminal switches the screen displayed in the live-streaming roomto the live-streaming screen of the anchor account, wherein the onlinetutorial end message is configured to indicate that the online tutorialfor the target service is ended. The online tutorial end message istriggered by the user operating the second terminal or triggered by theanchor. It should be noted that, in response to the online tutorial endmessage, the terminals corresponding to other viewer accounts in thelive-streaming room and the first terminal also switches the screendisplayed in the live-streaming room to the live-streaming screen of theanchor account. In this way, after the online tutorial is ended, theimage of the live-streaming room is switched from the current screen ofthe terminal to the live-streaming screen of the anchor accountautomatically, such that the anchor or the user does not need to switchthe image, thereby improving the human-computer interaction efficiency.

In the technical solutions provided in the embodiments of the presentdisclosure, by seeing the screen of a user, the anchor can provide atargeted tutorial based on actual operations of the user, therebyhelping the user learn better and improving the interaction between theanchor and the viewer.

FIG. 5 illustrates the live-streaming process of the online tutorial. Inother embodiments, after the online tutorial is ended, the user canfurther rate the online tutorial. FIG. 6 is a flowchart of a method forlive streaming according to an exemplary embodiment of the presentdisclosure. An interaction process between the second terminal and theserver is taken as an example in the embodiment. Referring to FIG. 6 ,the method includes the following processes.

In 601, in response to an online tutorial end message, the secondterminal displays an online tutorial scoring panel in the live-streamingroom, wherein the online tutorial scoring panel is configured to acquirea score of a current online tutorial, and the online tutorial scoringpanel includes a plurality of scoring options.

In some embodiments, in response to the online tutorial end message, thesecond terminal displays the online tutorial scoring panel in thelive-streaming room, wherein the online tutorial scoring panel includesinformation of the anchor account and the plurality of scoring options.For example, an anchor avatar or anchor ID of the anchor account, ascoring option “excellent”, a scoring option “good”, a scoring option“average” and a scoring option “poor” are displayed in thelive-streaming room. In this case, the user operating the secondterminal clicks or taps a corresponding scoring option to acquire thescore of the current online tutorial of the anchor.

In other embodiments, in response to the online tutorial end message,the second terminal displays an online tutorial scoring panel in thelive-streaming room, wherein the online tutorial scoring panel includesinformation of the anchor account and a score input box, wherein thescore input box is configured to input a score of the current onlinetutorial. In this case, the user operating the second terminal inputs ascore within a predetermined range into the score input box, such as 50,to acquire the score of the current online tutorial of the anchor. Thepredetermined range refers to a scoring range predetermined by thetechnician, e.g., 0 to 100 (points). In the foregoing processes, thetechnical solution is illustrated by using the scoring option and thescore input box as examples respectively. The score may also bedisplayed in other manners. The process of displaying the score is notlimited in the embodiments of the present disclosure.

In 602, in response to detecting a select operation on any of theplurality of scoring options, the second terminal sends a scorecorresponding to the scoring option to the server.

In some embodiments, in response to detecting the select operation onany of the plurality of scoring options, the second terminal acquiresthe score corresponding to the scoring option based on an optionidentifier of the scoring option and a corresponding relationshipbetween option identifiers and scores, and sends the score correspondingto the scoring option to the server.

In other embodiments, in response to detecting an input completionmessage for the score input box, the second terminal acquires the scorein the score input box, and sends the score to the server.

In the foregoing embodiments, by displaying the online tutorial scoringpanel, the user can rate the online tutorial of the anchor accountthrough the online tutorial scoring panel, thereby improving thehuman-computer interaction efficiency.

In 603, the server receives the score of the online tutorial.

In 604, the server updates, based on the score, a ranking of scores toacquire an updated ranking of scores, wherein the ranking of scoresincludes scores of a plurality of anchor accounts corresponding to thetarget service.

In some embodiments, the second terminal can further display the rankingof scores of the target service, wherein the ranking of scores includesthe scores of the plurality of anchor accounts corresponding to thetarget service. For example, in response to a ranking list view requestof the user, the second terminal displays the ranking of scores of thetarget service in the live-streaming room or on the interface of thelive-streaming application. Then, the user can select, based on theranking of scores, an anchor with a high score to provide a tutorial. Inaddition, the server can further maintain rankings of scores ofdifferent services. In response to receiving the score, the serverstores the score of the user, and displays, based on different services,the corresponding rankings of scores.

In the embodiments of the present disclosure, by setting the ranking ofscores, the amount of displayed information is increases, such that theuser can acquire the online tutorial score of each anchor account inreal time, and quickly determine an anchor account with a high onlinetutorial score.

FIG. 7 is a block diagram of an apparatus for live streaming accordingto an exemplary embodiment of the present disclosure. The apparatus isapplied to a first terminal. Referring to FIG. 7 , the apparatusincludes a portal displaying unit 701, a sending unit 702, a recordingunit 703, an image displaying unit 704, and a playing unit 705.

The portal displaying unit 701 is configured to display an onlinetutorial portal of a target service in a live-streaming room of ananchor account.

The sending unit 702 is configured to send an online tutorial request toa server in response to detecting a trigger operation on the onlinetutorial portal, wherein the online tutorial request is configured torequest the anchor account to provide an online tutorial for the targetservice.

The recording unit 703 is configured to acquire video data by recordinga current screen of the first terminal in response to approval of theanchor account for the online tutorial request.

The image displaying unit 704 is configured to display, in thelive-streaming room of the anchor account, the current screen of thefirst terminal based on the video data.

The playing unit 705 is configured to play, in response to receivingaudio data of the anchor account, the audio data of the anchor accountin the live-streaming room of the anchor account.

The sending unit 702 is further configured to acquire audio data of afirst account corresponding to the first terminal, and send the audiodata of the first account to the server, to trigger the server to sendthe audio data of the first account to second terminals corresponding toa plurality of second accounts in the live-streaming room.

In some embodiments, the apparatus further includes a message displayingunit. The message displaying unit is configured to display a resourcepayment prompt message in the live-streaming room in response to theapproval of the anchor account for the online tutorial request, whereinthe resource payment prompt message is configured to indicate an amountof resources to be paid for initiating the online tutorial request. Therecording unit 703 is further configured to acquire the video data inresponse to detecting a payment success message based on the resourcepayment prompt message.

In some embodiments, the image displaying unit 704 is further configuredto display a live-streaming screen of the anchor account in thelive-streaming room of the anchor account. The apparatus furtherincludes a switching unit. The switching unit is configured to switch ascreen displayed in the live-streaming room to the live-streaming screenof the anchor account in response to an online tutorial end message,wherein the online tutorial end message is configured to indicate thatthe online tutorial for the target service is ended.

In some embodiments, the apparatus further includes a panel displayingunit. The panel displaying unit is configured to display an onlinetutorial scoring panel in the live-streaming room in response to anonline tutorial end message, wherein the online tutorial end message isconfigured to indicate that the online tutorial for the target serviceis ended, the online tutorial scoring panel is configured to acquire ascore of a current online tutorial, and the online tutorial scoringpanel includes a plurality of scoring options. The sending unit 702 isfurther configured to send, in response to detecting a select operationon any of the plurality of scoring options, a score corresponding to thescoring option to the server.

In some embodiments, the apparatus further includes a ranking listdisplaying unit. The ranking list displaying unit is configured todisplay a ranking of scores of the target service, wherein the rankingof scores includes scores of a plurality of anchor accountscorresponding to the target service.

In the technical solutions provided in the embodiments of the presentdisclosure, by seeing the screen, the anchor can provide a targetedtutorial based on actual operations of the user, thereby helping theuser learn better and improving the interaction between the anchor andthe viewer.

FIG. 8 is a block diagram of an apparatus for live streaming accordingto an exemplary embodiment of the present disclosure. The apparatus isapplied to a server. Referring to FIG. 8 , the apparatus includes areceiving unit 801, an acquiring unit 802, a video data sending unit803, and an audio data sending unit 804.

The receiving unit 801 is configured to receive an online tutorialrequest from a first account in a live-streaming room of an anchoraccount, and send the online tutorial request to an anchor terminalcorresponding to the anchor account, wherein the online tutorial requestis configured to request the anchor account to provide an onlinetutorial for a target service.

The acquiring unit 802 is configured to acquire video data of the firstaccount in response to approval of the anchor account for the onlinetutorial request, wherein the video data is acquired by recording ascreen of a first terminal corresponding to the first account.

The video data sending unit 803 is configured to send the video data tosecond terminals corresponding to a plurality of second accounts in thelive-streaming room.

The audio data sending unit 804 is configured to send, in response toreceiving audio data of the anchor account, the audio data of the anchoraccount to the second terminals.

The audio data sending unit 804 is further configured to send, inresponse to receiving audio data of the first account, the audio data ofthe first account to the second terminals.

In some embodiments, the apparatus further includes a message sendingunit, wherein the message sending unit is configured to send a resourcepayment prompt message to the first terminal in response to the approvalof the anchor account for the online tutorial request, wherein theresource payment prompt message is configured to indicate an amount ofresources to be paid for initiating the online tutorial request.

In some embodiments, the receiving unit 801 is further configured toreceive a score of a current online tutorial. The apparatus furtherincludes an updating unit, wherein the updating unit is configured toupdate, based on the score, a ranking of scores to acquire an updatedranking of scores, wherein the ranking of scores includes scores of aplurality of anchor accounts corresponding to the target service.

In the technical solutions provided in the embodiments of the presentdisclosure, by seeing the screen, the anchor can provide a targetedtutorial based on actual operations of the user, thereby helping theuser learn better and improving the interaction between the anchor andthe viewer.

FIG. 9 is a block diagram of an apparatus for live streaming accordingto an exemplary embodiment of the present disclosure. The apparatus isapplied to an anchor terminal. Referring to FIG. 9 , the apparatusincludes a message displaying unit 901, a sending unit 902, and an imagedisplaying unit 903.

The message displaying unit 901 is configured to display, in response toan online tutorial request of a first account in a live-streaming roomof an anchor account, a prompt message of the online tutorial request inthe live-streaming room, wherein the online tutorial request isconfigured to request the anchor account to provide an online tutorialfor a target service.

The sending unit 902 is configured to send an approval message to aserver in response to detecting an approval operation on the promptmessage, wherein the approval message is configured to indicate that theanchor account approves the online tutorial request.

The image displaying unit 903 is configured to display, in response toreceiving video data of the first account, a current screen of a firstterminal corresponding to the first account based on the video data,wherein the video data is acquired by recording the screen of the firstterminal.

The sending unit 902 is further configured to acquire audio data of theanchor account and send the audio data of the anchor account to theserver, to trigger the server to send the audio data of the anchoraccount to second terminals corresponding to a plurality of secondaccounts in the live-streaming room.

The apparatus is further configured to play, in response to receivingaudio data of the first account, the audio data of the first account inthe live-streaming room of the anchor account.

In some embodiments, the apparatus further includes a button displayingunit. The button displaying unit is configured to display an onlinetutorial button in the live-streaming room of the anchor account,wherein the online tutorial button is configured to activate an onlinetutorial function. The sending unit 902 is further configured to send anonline tutorial function activation message to the server in response todetecting a trigger operation on the online tutorial button, wherein theonline tutorial function activation message is configured to indicatethat the online tutorial function has been activated.

In some embodiments, the apparatus further includes an input boxdisplaying unit and an acquiring unit. The input box displaying unit isconfigured to display a resource amount input box in the live-streamingroom in response to detecting the trigger operation on the onlinetutorial button, wherein the resource amount input box is configured toinput a resource amount required for the online tutorial. The acquiringunit is configured to acquire the resource amount in the resource amountinput box in response to detecting an input complete operation on theresource amount input box. The sending unit 902 is further configured tosend an online tutorial function activation message carrying theresource amount to the server.

In the technical solutions provided in the embodiments of the presentdisclosure, by seeing the screen, the anchor can provide a targetedtutorial based on actual operations of the user, thereby helping theuser learn better and improving the interaction between the anchor andthe viewer.

FIG. 10 is a block diagram of a terminal 1000 according to an exemplaryembodiment of the present disclosure. In some embodiments, the terminal1000 may be a smart mobile phone, a tablet computer, a Moving PictureExperts Group Audio Layer III (MP3) player, a Moving Picture ExpertsGroup Audio Layer IV (MP4) player, a laptop computer, or a desktopcomputer. The terminal 1000 may also be referred to as a user equipment,a portable terminal, a laptop terminal, or a desktop terminal.

Generally, the terminal 1000 includes a processor 1001 and a memory1002.

In some embodiments, the processor 1001 includes one or more processingcores, such as a quad-core processor or an eight-core processor. Theprocessor 1001 is implemented in at least one hardware form of a digitalsignal processor (DSP), a field-programmable gate array (FPGA), and aprogrammable logic array (PLA). In some embodiments, the processor 1001further includes a main processor and a coprocessor. The main processoris a processor configured to process data in an awake state, and is alsoreferred to as a central processing unit (CPU). The coprocessor is alow-power-consumption processor configured to process data in a standbystate. In some embodiments, the processor 1001 is integrated with agraphics processing unit (GPU). The GPU is configured to render and drawcontent that needs to be displayed by a display screen. In someembodiments, the processor 1001 further includes an ArtificialIntelligence (AI) processor. The AI processor is configured to processcomputational operations related to machine learning.

In some embodiments, the memory 1002 includes one or morecomputer-readable storage medium. The computer-readable storage mediumis non-transitory, or the computer-readable storage medium is of anothertype, which is not limited in the embodiments of the present disclosure.In some embodiments, the memory 1002 further includes a high-speedrandom-access memory and a non-volatile memory such as one or moremagnetic disk storage devices and flash storage devices. In someembodiments, the non-transitory computer-readable storage medium in thememory 1002 is configured to store at least one instruction. The atleast one instruction is configured to be executed by the processor 1001to perform the processes that the first terminal or second terminalperforming in the method for live streaming provided in the methodembodiments of the present disclosure.

In some embodiments, the terminal 1000 further includes a peripheraldevice interface 1003 and at least one peripheral device. The processor1001, the memory 1002, and the peripheral device interface 1003 may beconnected by a bus or a signal cable. Each peripheral device may beconnected to the peripheral device interface 1003 by a bus, a signalline, or a circuit board. In some embodiments, the peripheral deviceincludes at least one of: a radio frequency circuit 1004, a displayscreen 1005, a camera assembly 1006, an audio circuit 1007, apositioning assembly 1008, and a power supply 1009.

The peripheral device interface 1003 may be configured to connect atleast one peripheral device associated with an input/output (I/O) to theprocessor 1001 and the memory 1002. In some embodiments, the processor1001, the memory 1002, and the peripheral device interface 1003 areintegrated on the same chip or circuit board. In some other embodiments,any one or two of the processor 1001, the memory 1002 and the peripheraldevice interface 1003 may be implemented on an independent chip orcircuit board, which is not limited in the embodiments of the presentdisclosure.

The radio frequency circuit 1004 is configured to receive and transmit aradio frequency (RF) signal, also referred to as an electromagneticsignal. The radio frequency circuit 1004 communicates with acommunication network and other communication devices via theelectromagnetic signal. The radio frequency circuit 1004 converts anelectrical signal to the electromagnetic signal for transmission, orconverts the electromagnetic signal to the electrical signal.Optionally, the radio frequency circuit 1004 includes: an antennasystem, an RF transceiver, one or more amplifiers, a tuner, anoscillator, a digital signal processor, a coder/decoder (codec) chipset,a subscriber identity module card, and the like. The radio frequencycircuit 1004 communicates with other terminals in accordance with atleast one wireless communication protocol. The wireless communicationprotocol includes, but is not limited to, a metropolitan area network(MAN), various generations of mobile communication networks (2G, 3G, 4G,and 5G), a wireless local area network (LAN) and/or a wireless fidelity(Wi-Fi) network. In some embodiments, the radio frequency circuit 1004further includes a circuit related to near field communication (NFC),which is not limited in the present disclosure.

The display screen 1005 is configured to display a user interface (UI).In some embodiments, the UI includes a graph, a text, an icon, a video,and any combination thereof. In the case that the display screen 1005 isa touch display screen, the display screen 1005 further has a functionof acquiring a touch signal on or over a surface of the display screen1005. In some embodiments, the touch signal may be input as a controlsignal to the processor 1001 for processing. In this case, the displayscreen 1005 is further configured to provide a virtual button and/or avirtual keyboard, which is also referred to as a soft button and/or asoft keyboard. In some embodiments, the display screen 1005 is providedas one screen disposed on a front panel of the terminal 1000. In someother embodiments, the display screen 1005 is provided as at least twoscreens disposed respectively on different surfaces of the terminal 1000or design as folded. In still other embodiments, the display screen 1005is a flexible display screen disposed on a curved surface or a foldedsurface of the terminal 1000. Furthermore, the display screen 1005 isprovided as a non-rectangular pattern, namely, an irregular-shapedscreen. In some embodiments, the display screen 1005 is a liquid crystaldisplay (LCD), an organic light-emitting diode (OLED) screen, or thelike.

The camera assembly 1006 is configured to acquire an image or a video.In some embodiments, the camera assembly 1006 includes a front cameraand a rear camera. Generally, the front camera is disposed on a frontpanel of the terminal, and the rear camera is disposed on a rear surfaceof the terminal. In some embodiments, there are at least two rearcameras, which are respectively any one of a main camera, adepth-of-field camera, a wide-angle camera, and a telephoto camera, toimplement a background blur function by combining of the main camera andthe depth-of-field camera, and a panoramic shooting function and avirtual reality (VR) shooting function by combining of the main cameraand the wide-angle camera, or other fusion shooting functions. In someembodiments, the camera assembly 1006 further includes a flashlight. Forexample, the flashlight is a single-color-temperature flashlight, or adual-color-temperature flashlight. The dual-color-temperature flashlightis a combination of a warm flashlight and a cold flashlight, and canprovide light compensation under different color temperatures.

The audio circuit 1007 includes a microphone and a speaker. Themicrophone is configured to acquire sound waves of a user and anenvironment, and convert the sound waves into electrical signals andinput the electrical signals into the processor 1001 for processing, orinput the electrical signals into the radio frequency circuit 1004 toimplement voice communication. In some embodiments, for the purpose ofstereo acquisition or noise reduction, a plurality of microphones isprovided and respectively disposed at different parts of the terminal1000. In some embodiments, the microphone is an array microphone or anomnidirectional acquisition microphone. The speaker is configured toconvert electrical signals from the processor 1001 or the radiofrequency circuit 1004 into sound waves. For example, the speaker is aconventional film speaker or a piezoelectric ceramic speaker. In thecase that the speaker is the piezoelectric ceramic speaker, electricalsignals can be converted into not only human-audible sound waves, butalso the sound waves which are inaudible to human for the purpose ofranging and the like. In some embodiments, the audio circuit 1007further includes a headphone jack.

The positioning assembly 1008 is configured to determine a currentgeographic location of the terminal 1000, to implement a navigation or alocation based service (LBS). In some embodiments, the positioningassembly 1008 is a positioning assembly based on the United States'Global Positioning System (GPS), China's BeiDou Navigation SatelliteSystem, Russia's Global Navigation Satellite System (GLONASS), or theEuropean Union's Galileo Satellite Navigation System (Galileo).

The power supply 1009 is configured to supply power for variousassemblies in the terminal 1000. In some embodiments, the power supply1009 is alternating current, direct current, a disposable battery, or arechargeable battery. In the case that the power supply 1009 includesthe rechargeable battery, the rechargeable battery can be charged in awired mode or a wireless mode. Further, the rechargeable battery canalso support the fast-charging technology.

In some embodiments, the terminal 1000 further includes one or moresensors 1010. The one or more sensors 1010 include, but are not limitedto: an acceleration sensor 1011, a gyroscope sensor 1012, a force sensor1013, a fingerprint sensor 1014, an optical sensor 1015, and a proximitysensor 1016.

The acceleration sensor 1011 is configured to detect magnitude ofaccelerations on three coordinate axes of a coordinate systemestablished by the terminal 1000. For example, the acceleration sensor1011 is configured to detect components of gravitational acceleration onthe three coordinate axes. The processor 1001 can control the displayscreen 1005 to display a user interface in a lateral view or a verticalview based on gravitational acceleration signals acquired by theacceleration sensor 1011. The acceleration sensor 1011 is furtherconfigured to acquire motion data of a game or a user.

The gyroscope sensor 1012 is configured to detect a body direction and arotational angle of the terminal 1000. The gyroscope sensor 1012 cancooperate with the acceleration sensor 1011 to acquire a 3D action ofthe user on the terminal 1000. Based on the data acquired by thegyroscope sensor 1012, the processor 1001 can implement the followingfunctions: motion sensing (such as changing the UI based on a tiltoperation of the user), image stabilization during shooting, gamecontrol, and inertial navigation.

The force sensor 1013 is disposed on a side frame of the terminal 1000and/or a layer under the display screen 1005. In the case that the forcesensor 1013 is disposed on the side frame of the terminal 1000, a user'sholding signal to the terminal 1000 is detected. The processor 1001performs left/right hand recognition or a quick operation based on theholding signal acquired by the force sensor 1013. In the case that theforce sensor 1013 is disposed on the layer under the display screen1005, the processor 1001 controls an operable control on the UI based ona user's press operation on the display screen 1005. The operablecontrol includes at least one of a button control, a scroll bar control,an icon control and a menu control.

The fingerprint sensor 1014 is configured to acquire a user'sfingerprint. The user's identity is identified by the processor 1001 orby the fingerprint sensor 1014 based on the fingerprint acquired by thefingerprint sensor 1414. In the case that the user's identity isidentified as a trusted identity, the user is authorized by theprocessor 1001 to perform a related sensitive operation. The sensitiveoperation includes unlocking the screen, viewing encrypted information,downloading software, payment, changing settings, and the like. In someembodiments, the fingerprint sensor 1014 is disposed on the front, rear,or side surface of the terminal 1000. In the case that the terminal 1000is provided with a physical button or its manufacturer's logo, thefingerprint sensor 1014 is integrated with the physical button or itsmanufacturer's logo.

The optical sensor 1015 is configured to acquire intensity of ambientlight. In one embodiment, the processor 1001 controls display brightnessof the display screen 1005 based on the intensity of ambient lightacquired by the optical sensor 1015. In some embodiments, in the casethat the intensity of ambient light is relatively high, the displaybrightness of the display screen 1005 is increased. In the case that theintensity of ambient light is relatively low, the display brightness ofthe display screen 1005 is decreased. In another embodiment, theprocessor 1001 is further configured to dynamically adjust shootingparameters of the camera assembly 1006 based on the intensity of ambientlight acquired by the optical sensor 1015.

The proximity sensor 1016, also referred to as a distance sensor, isgenerally disposed on the front panel of the terminal 1000. Theproximity sensor 1016 is configured to acquire a distance between a userand the front surface of the terminal 1000. In one embodiment, in thecase that the distance between the user and the front surface of theterminal 1000 detected by the proximity sensor 1016 gradually decreases,the display screen 1005 is controlled by the processor 1001 to switchfrom a screen-on state to a screen-off state. In the case that thedistance between the user and the front surface of the terminal 1000detected by the proximity sensor 1016 gradually increases, the displayscreen 1005 is controlled by the processor 1001 to switch from thescreen-off state to the screen-on state.

It can be understood by a person skilled in the art that the structureshown in FIG. 10 does not constitute a limitation to the terminal 1000.More or less components than those illustrated may be included, or somecomponents may be combined, or different component arrangements may beprovided.

FIG. 11 is a block diagram of a server according to an exemplaryembodiment of the present disclosure. Significant differences may begenerated when the server 1100 has different configurations orperformances. In some embodiments, the server 1100 includes one or moreprocessors (CPUs) 1101 and one or more memories 1102 storing at leastone of program code therein. The at least one of program code, whenloaded and executed by the one or more processors 1101, causes the oneor more processors 1101 to perform the execution process of the serverin the method for live streaming according to each of the foregoingmethod embodiments. In some embodiments, the server 1100 furtherincludes components such as a wired or wireless network interface, akeyboard, and an input/output interface for input and output. The server1100 further includes other components for implementing devicefunctions, which will not be described herein.

In an exemplary embodiment, a non-transitory computer-readable storagemedium including program code is provided, such as the memory 1002including program code or the memory 1102 including program code. Theprogram code may be executed by the processor 1001 of the terminal 1000or the processor 1101 of the server 1100 to perform the above methodsfor live streaming according to the above method embodiments. In someembodiments, the storage medium is a non-transitory computer-readablestorage medium. For example, the non-transitory computer-readablestorage medium may be a read-only memory (ROM), a random-access memory(RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, afloppy disk, or an optical data storage device.

In an exemplary embodiment, a computer program product including acomputer program is further provided, wherein the computer program, whenexecuted by the processor 1001 of the terminal 1000 or the processor1101 of the server 1100, causes the processor 1001 or the processor 1101to perform the methods for live streaming according to the above methodembodiments.

In an exemplary embodiment, a method for live streaming is provided. Themethod includes:

displaying an online tutorial portal of a target service in alive-streaming room of an anchor account;

in response to detecting a trigger operation on the online tutorialportal, sending an online tutorial request to a server, wherein theonline tutorial request is configured to request the anchor account toprovide an online tutorial for the target service;

acquiring video data by recording a current screen of a terminal inresponse to approval of the anchor account for the online tutorialrequest;

displaying, in the live-streaming room of the anchor account, thecurrent screen of the terminal based on the video data; and

in response to receiving the audio data of the anchor account, playingthe audio data in the live-streaming room of the anchor account.

In some embodiments, the method further includes:

displaying a payment prompt message in the live-streaming room inresponse to the approval of the anchor account for the online tutorialrequest, wherein the payment prompt message is configured to indicate anamount of resources to be paid for initiating the online tutorialrequest; and

acquiring the video data in response to detecting a payment successmessage based on the payment resource prompt message.

In some embodiments, the method further includes:

sending the video data to the server.

In some embodiments, the method further includes:

displaying a live-streaming screen of the anchor account in thelive-streaming room of the anchor account;

switching a screen displayed in the live-streaming room to thelive-streaming screen of the anchor account in response to an onlinetutorial end message, wherein the online tutorial end message isconfigured to indicate that the online tutorial for the target serviceis ended.

In some embodiments, the method further includes:

displaying an online tutorial scoring panel in the live-streaming roomin response to an online tutorial end message, wherein the onlinetutorial end message is configured to indicate that the online tutorialfor the target service is ended, the online tutorial scoring panel isconfigured to acquire a score of the current online tutorial, and theonline tutorial scoring panel includes a plurality of scoring options;and

in response to detecting a select operation on any of the plurality ofscoring options, sending a score corresponding to the scoring option tothe server.

In some embodiments, the method further includes:

displaying a ranking of scores of the target service, wherein theranking of scores includes scores of a plurality of anchor accountscorresponding to the target service.

In an exemplary embodiment, a method for live streaming is provided. Themethod includes:

receiving an online tutorial request from any account in alive-streaming room of an anchor account, and sending the onlinetutorial request to a terminal corresponding to the anchor account,wherein the online tutorial request is configured to request the anchoraccount to provide an online tutorial for the target service;

acquiring video data of the account in response to approval of theanchor account for the online tutorial request, wherein the video datais acquired by recording a screen of a terminal corresponding to theaccount;

sending the video data to terminals of a plurality of accounts in thelive-streaming room; and

in response to receiving audio data of the anchor account, sending theaudio data to the terminals of the plurality of accounts in thelive-streaming room.

In some embodiments, the method further includes:

sending a payment prompt message to the terminal corresponding to theaccount in response to the approval of the anchor account for the onlinetutorial request, wherein the payment prompt message is configured toindicate an amount of resources to be paid for initiating the gameonline tutorial request.

In some embodiments, the method further includes:

receiving a score of the current game online tutorial; and

updating, based on the score, a ranking of scores to acquire an updatedranking of scores, wherein the ranking of scores includes scores of aplurality of anchor accounts corresponding to the target service.

In an exemplary embodiment, a method for live streaming is provided. Themethod is performed by an anchor terminal. The method includes:

displaying, in response to an online tutorial request of any one ofaccounts in a live-streaming room of an anchor account, a prompt messageof the online tutorial request in the live-streaming room, wherein theonline tutorial request is configured to request the anchor account toprovide an online tutorial for a target service;

in response to detecting an approval operation on the prompt message,sending an approval message to a server, wherein the approval message isconfigured to indicate that the anchor account approves the onlinetutorial request;

in a case that video data of the any one of accounts is received,displaying a current screen of a terminal corresponding to the any oneof accounts based on the video data, wherein the video data is acquiredby recording the screen of the terminal corresponding to the account;and

acquiring audio data of the anchor account, and sending the audio datato the server to trigger the server to send the audio data of the anchoraccount to second terminals corresponding to a plurality of secondaccounts in the live-streaming room; and

playing, in response to receiving audio data of the any one of theaccounts, the audio data of the any one of the accounts in thelive-streaming room of the anchor account.

In some embodiments, the method further includes:

displaying an online tutorial button in the live-streaming room of theanchor account, wherein the online tutorial button is configured toactivate an online tutorial function; and

in response to detecting a trigger operation on the online tutorialbutton, sending an online tutorial function activation message to theserver, wherein the online tutorial function activation message isconfigured to indicate that the online tutorial function has beenactivated.

In some embodiments, the method further includes:

in response to detecting a trigger operation on the online tutorialbutton, displaying a resource amount input box in the live-streamingroom, wherein the resource amount input box is configured to input aresource amount required for the online tutorial;

in response to detecting an input complete operation on the resourceamount input box, acquiring the resource amount in the resource amountinput box; and

sending an online tutorial function activation message carrying theresource amount to the server.

In some embodiments, displaying the prompt message of the onlinetutorial request in the live-streaming room comprises: displaying theprompt message of the online tutorial request in the live-streaming roomin a form of a prompt box for the online tutorial request.

In some embodiments, the prompt box for the online tutorial requestcomprises an approve button, wherein said sending the approval messageto the server in response to detecting the approval operation on theprompt message comprises: sending the approval message to the server inresponse to a click operation on the approve button in the prompt boxfor the online tutorial request.

All the embodiments of the present disclosure can be practicedindividually or in combination with other embodiments, and theseembodiments are all regarded as being within the protection scope of thepresent disclosure.

The invention claimed is:
 1. A method for live streaming, performed by a first terminal, comprising: displaying an online tutorial portal of a target service in a live-streaming room of an anchor account; sending an online tutorial request to a server in response to detecting a trigger operation on the online tutorial portal, wherein the online tutorial request is configured to request the anchor account to provide an online tutorial for the target service; acquiring video data by recording a current screen of the first terminal in response to approval of the anchor account for the online tutorial request, wherein the first terminal is a terminal to which a first account is logged in, and a user of the first account is a viewer in the live-streaming room; displaying, in the live-streaming room of the anchor account, the current screen of the first terminal based on the video data such that an anchor of the anchor account is capable of seeing the current screen of the first terminal and providing a targeted tutorial based on actual operations of the user of the first account; playing, in response to receiving audio data of the anchor account, the audio data of the anchor account in the live-streaming room of the anchor account; and acquiring audio data of the first account corresponding to the first terminal, and sending the audio data of the first account to the server, to trigger the server to send the audio data of the first account to second terminals corresponding to a plurality of second accounts in the live-streaming room.
 2. The method according to claim 1, wherein after sending the online tutorial request to the server in response to detecting the trigger operation on the online tutorial portal, the method further comprises: displaying a resource payment prompt message in the live-streaming room in response to the approval of the anchor account for the online tutorial request, wherein the resource payment prompt message is configured to indicate an amount of resources to be paid for initiating the online tutorial request; and acquiring the video data in response to detecting a payment success message based on the resource payment prompt message.
 3. The method according to claim 1, wherein after acquiring the video data by recording the current screen of the first terminal in response to the approval of the anchor account for the online tutorial request, the method further comprises: sending the video data to the server.
 4. The method according to claim 1, wherein before displaying, in the live-streaming room of the anchor account, the current screen of the first terminal based on the video data, the method further comprises: displaying a live-streaming screen of the anchor account in the live-streaming room of the anchor account; and after displaying, in the live-streaming room of the anchor account, the current screen of the first terminal based on the video data, the method further comprises: switching a screen displayed in the live-streaming room to the live-streaming screen of the anchor account in response to an online tutorial end message, wherein the online tutorial end message is configured to indicate that the online tutorial for the target service is ended.
 5. The method according to claim 1, wherein after displaying, in the live-streaming room of the anchor account, the current screen of the first terminal based on the video data, the method further comprises: displaying an online tutorial scoring panel in the live-streaming room in response to an online tutorial end message, wherein the online tutorial end message is configured to indicate that the online tutorial for the target service is ended, the online tutorial scoring panel is configured to acquire a score of a current online tutorial, and the online tutorial scoring panel comprises a plurality of scoring options; and sending, in response to detecting a select operation on any of the plurality of scoring options, a score corresponding to the scoring option to the server.
 6. The method according to claim 1, wherein after displaying, in the live-streaming room of the anchor account, the current screen of the first terminal based on the video data, the method further comprises: displaying a ranking of scores of the target service, wherein the ranking of scores comprises scores of a plurality of anchor accounts corresponding to the target service.
 7. The method of claim 1, wherein before acquiring video data by recording a current screen of the first terminal in response to approval of the anchor account for the online tutorial request, the method comprises: activating a preset application of the online tutorial and displaying an interface of the preset application on the first terminal.
 8. A method for live streaming, performed by a server, comprising: receiving an online tutorial request from a first account in a live-streaming room of an anchor account, and sending the online tutorial request to an anchor terminal corresponding to the anchor account, wherein the online tutorial request is configured to request the anchor account to provide an online tutorial for a target service, wherein the a user of the first account is a viewer in the live-streaming room who needs the online tutorial; acquiring video data of the first account in response to approval of the anchor account for the online tutorial request, wherein the video data is acquired by recording a current screen of a first terminal corresponding to the first account for displaying in the live-streaming room such that an anchor of the anchor account is capable of seeing the current screen of the first terminal and providing a targeted tutorial based on actual operations of the user of the first account; sending the video data to second terminals corresponding to a plurality of second accounts in the live-streaming room; sending, in response to receiving audio data of the anchor account, the audio data of the anchor account to the second terminals; and sending, in response to receiving audio data of the first account, the audio data of the first account to the second terminals.
 9. The method according to claim 8, wherein after receiving the online tutorial request from the first account in the live-streaming room of the anchor account, and sending the online tutorial request to the anchor terminal corresponding to the anchor account, the method further comprises: sending a resource payment prompt message to the first terminal in response to the approval of the anchor account for the online tutorial request, wherein the resource payment prompt message is configured to indicate an amount of resources to be paid for initiating the online tutorial request.
 10. The method according to claim 8, wherein after sending the video data to the second terminals corresponding to the plurality of second accounts in the live-streaming room, the method further comprises: receiving a score of a current online tutorial; and updating, based on the score, a ranking of scores to acquire an updated ranking of scores, wherein the ranking of scores comprises scores of a plurality of anchor accounts corresponding to the target service.
 11. A method for live streaming, performed by an anchor terminal, comprising: displaying, in response to an online tutorial request of a first account in a live-streaming room of an anchor account, a prompt message of the online tutorial request in the live-streaming room, wherein the online tutorial request is configured to request the anchor account to provide an online tutorial for a target service, wherein the a user of the first account is a viewer in the live-streaming room who needs the online tutorial; sending an approval message to a server in response to detecting an approval operation on the prompt message, wherein the approval message is configured to indicate that the anchor account approves the online tutorial request; displaying, in response to receiving video data of the first account, a current screen of a first terminal corresponding to the first account based on the video data such that an anchor of the anchor account is capable of seeing the current screen of the first terminal and providing a targeted tutorial based on actual operations of the user of the first account, wherein the video data is acquired by recording the current screen of the first terminal; acquiring audio data of the anchor account and sending the audio data of the anchor account to the server, to trigger the server to send the audio data of the anchor account to second terminals corresponding to a plurality of second accounts in the live-streaming room; and playing, in response to receiving audio data of the first account, the audio data of the first account in the live-streaming room of the anchor account.
 12. The method according to claim 11, wherein before displaying, in response to the online tutorial request of the first account in the live-streaming room of the anchor account, the prompt message of the online tutorial request in the live-streaming room, the method further comprises: displaying an online tutorial button in the live-streaming room of the anchor account, wherein the online tutorial button is configured to activate an online tutorial function; and sending an online tutorial function activation message to the server in response to detecting a trigger operation on the online tutorial button, wherein the online tutorial function activation message is configured to indicate that the online tutorial function has been activated.
 13. The method according to claim 12, wherein after displaying the online tutorial button in the live-streaming room of the anchor account, the method further comprises: displaying a resource amount input box in the live-streaming room in response to detecting the trigger operation on the online tutorial button, wherein the resource amount input box is configured to input a resource amount required for the online tutorial; acquiring the resource amount in the resource amount input box in response to detecting an input complete operation on the resource amount input box; and sending an online tutorial function activation message carrying the resource amount to the server.
 14. The method according to claim 11, said displaying the prompt message of the online tutorial request in the live-streaming room comprises: displaying the prompt message of the online tutorial request in the live-streaming room in a form of a prompt box for the online tutorial request.
 15. The method according to claim 14, wherein the prompt box for the online tutorial request comprises an approve button; and said sending the approval message to the server in response to detecting the approval operation on the prompt message comprises: sending the approval message to the server in response to a click operation on the approve button in the prompt box for the online tutorial request. 